package com.yangyanhu.ssmc.shiro.mapper;

import com.yangyanhu.ssmc.shiro.pojo.Role;
import com.yangyanhu.ssmc.shiro.pojo.User;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * RoleMapper
 */
public interface RoleMapper extends Mapper<Role> {
    /**
     * 根据User查询Role
     * @param userDto
     * @return Role
     */
    public List<Role> findRoleByUser(User userDto);
}